<?php

/**
 * sfGuardUserAdminForm for admin generators
 *
 * @package    sfDoctrineGuardPlugin
 * @subpackage form
 * @author     Fabien Potencier <fabien.potencier@symfony-project.com>
 * @version    SVN: $Id: sfGuardUserAdminForm.class.php 23536 2009-11-02 21:41:21Z Kris.Wallsmith $
 */
class sfGuardUserAdminForm extends BasesfGuardUserAdminForm
{
  /**
   * @see sfForm
   */
  public function configure()
  {
      $this->getWidget('groups_list')->setOption('expanded', true);
      $this->getWidgetSchema()->setHelp('sectors_list', 'This field is important for editors users');
      $this->setCustomFormatter();
      $this->widgetSchema['username'] = new sfWidgetFormInput();
      $this->validatorSchema['username'] = new sfValidatorString();
  }
}
